package com.atguigu.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @program: cloud2020
 * @description:
 * @author: 陈恩涛
 * @create: 2022-03-02 12:28
 **/
public interface LoadBalancer {

    /**
     * 根据负载均衡策略获取当前访问的服务
     * @param serviceInstances
     * @return
     */
    ServiceInstance instance(List<ServiceInstance> serviceInstances);
}
